home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / enlightenment / e_desk.h < prev    next >
C/C++ Source or Header  |  2006-01-09  |  2KB  |  63 lines

  1. /*
  2.  * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
  3.  */
  4. #ifdef E_TYPEDEFS
  5.  
  6. typedef struct _E_Desk E_Desk;
  7. typedef struct _E_Event_Desk_Show E_Event_Desk_Show;
  8. typedef struct _E_Event_Desk_Name_Change E_Event_Desk_Name_Change;
  9.  
  10. #else
  11. #ifndef E_DESK_H
  12. #define E_DESK_H
  13.  
  14. #define E_DESK_TYPE 0xE0b01005
  15.  
  16. struct _E_Desk
  17. {
  18.    E_Object             e_obj_inherit;
  19.  
  20.    E_Zone              *zone;
  21.    char                *name;
  22.    int                  x, y;
  23.    char                 visible : 1;
  24.  
  25.    Evas_Object         *bg_object;
  26. };
  27.  
  28. struct _E_Event_Desk_Show
  29. {
  30.    E_Desk   *desk;
  31. };
  32.  
  33. struct _E_Event_Desk_Name_Change
  34. {
  35.    E_Desk   *desk;
  36. };
  37.  
  38. EAPI int          e_desk_init(void);
  39. EAPI int          e_desk_shutdown(void);
  40. EAPI E_Desk      *e_desk_new(E_Zone *zone, int x, int y);
  41. EAPI void         e_desk_name_set(E_Desk *desk, const char *name);
  42. EAPI void         e_desk_name_add(int container, int zone, int desk_x, int desk_y, char *name);
  43. EAPI void         e_desk_name_del(int container, int zone, int desk_x, int desk_y);
  44. EAPI void         e_desk_name_update(void);
  45. EAPI void         e_desk_show(E_Desk *desk);
  46. EAPI void         e_desk_last_focused_focus(E_Desk *desk);
  47. EAPI E_Desk      *e_desk_current_get(E_Zone *zone);
  48. EAPI E_Desk      *e_desk_at_xy_get(E_Zone *zone, int x, int y);
  49. EAPI E_Desk      *e_desk_at_pos_get(E_Zone *zone, int pos);
  50. EAPI void         e_desk_xy_get(E_Desk *desk, int *x, int *y);
  51. EAPI void         e_desk_next(E_Zone *zone);
  52. EAPI void         e_desk_prev(E_Zone *zone);
  53. EAPI void         e_desk_row_add(E_Zone *zone);
  54. EAPI void         e_desk_row_remove(E_Zone *zone);
  55. EAPI void         e_desk_col_add(E_Zone *zone);
  56. EAPI void         e_desk_col_remove(E_Zone *zone);
  57.  
  58. extern EAPI int E_EVENT_DESK_SHOW;
  59. extern EAPI int E_EVENT_DESK_NAME_CHANGE;
  60.  
  61. #endif
  62. #endif
  63.